package GamePoker.PokerJava;

import java.util.Scanner;

public class Poker {
    PokerNumber numberObj;
    PokerSuit suitObj;

    Scanner sc=new Scanner(System.in);
    public Poker(PokerNumber numberObj, PokerSuit suitObj) {
        this.numberObj = numberObj;
        this.suitObj = suitObj;
    }
    public boolean PokerCompare(Poker other)
    {
        boolean result=true;
        if(this.numberObj.tag==other.numberObj.tag)
        {
//            if(this.suitObj.tag>other.suitObj.tag)
//            {
//                result=true;
//            }
//            else
//            {
//                result=false;
//            }
            result=this.suitObj.tag>other.suitObj.tag;
        }
        else {
//            if(this.numberObj.tag>other.numberObj.tag)
//            {
//                result=true;
//            }
//            else {
//                result=false;
//            }
            result=this.numberObj.tag>other.numberObj.tag;
        }
        return result;
    }

}
